package com.qianfeng.openapi.common.exception;


import com.qianfeng.openapi.common.enums.OpenApiEnums;

public class OpenApiEx extends RuntimeException {

    private Integer status;

    public OpenApiEx(Integer status, String message) {
        super(message);
        this.status = status;
    }
    public OpenApiEx(OpenApiEnums enums) {
        super(enums.getMessage());
        this.status = enums.getStatus();
    }

    public Integer getStatus() {
        return status;
    }
}
